package com.bootcamp.ex1124.service;

import org.springframework.stereotype.Service;

/**
 * @program: ex1124
 * @description:
 * @author: Keyu Li
 * @create: 2021-11-25 10:56
 **/

@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String a) {
        System.out.println("name: "+a);
        return a;
    }

    /*
    * 为了验证生命周期过程（第一步是实例化，无参构造）
    * */

    public HelloServiceImpl() {
        System.out.println("service 实例化");
    }
}
